﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001B1 RID: 433
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeBossEquipmentInfo : IMessage<ChallengeBossEquipmentInfo>, IMessage, IEquatable<ChallengeBossEquipmentInfo>, IDeepCloneable<ChallengeBossEquipmentInfo>, IBufferMessage
	{
		// Token: 0x170005AC RID: 1452
		// (get) Token: 0x0600137D RID: 4989 RVA: 0x000378A3 File Offset: 0x00035AA3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeBossEquipmentInfo> Parser
		{
			get
			{
				return ChallengeBossEquipmentInfo._parser;
			}
		}

		// Token: 0x170005AD RID: 1453
		// (get) Token: 0x0600137E RID: 4990 RVA: 0x000378AA File Offset: 0x00035AAA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeBossEquipmentInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170005AE RID: 1454
		// (get) Token: 0x0600137F RID: 4991 RVA: 0x000378BC File Offset: 0x00035ABC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeBossEquipmentInfo.Descriptor;
			}
		}

		// Token: 0x06001380 RID: 4992 RVA: 0x000378C3 File Offset: 0x00035AC3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossEquipmentInfo()
		{
		}

		// Token: 0x06001381 RID: 4993 RVA: 0x000378CC File Offset: 0x00035ACC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossEquipmentInfo(ChallengeBossEquipmentInfo other) : this()
		{
			this.uniqueId_ = other.uniqueId_;
			this.level_ = other.level_;
			this.rank_ = other.rank_;
			this.tid_ = other.tid_;
			this.promotion_ = other.promotion_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001382 RID: 4994 RVA: 0x0003792C File Offset: 0x00035B2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossEquipmentInfo Clone()
		{
			return new ChallengeBossEquipmentInfo(this);
		}

		// Token: 0x170005AF RID: 1455
		// (get) Token: 0x06001383 RID: 4995 RVA: 0x00037934 File Offset: 0x00035B34
		// (set) Token: 0x06001384 RID: 4996 RVA: 0x0003793C File Offset: 0x00035B3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint UniqueId
		{
			get
			{
				return this.uniqueId_;
			}
			set
			{
				this.uniqueId_ = value;
			}
		}

		// Token: 0x170005B0 RID: 1456
		// (get) Token: 0x06001385 RID: 4997 RVA: 0x00037945 File Offset: 0x00035B45
		// (set) Token: 0x06001386 RID: 4998 RVA: 0x0003794D File Offset: 0x00035B4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x170005B1 RID: 1457
		// (get) Token: 0x06001387 RID: 4999 RVA: 0x00037956 File Offset: 0x00035B56
		// (set) Token: 0x06001388 RID: 5000 RVA: 0x0003795E File Offset: 0x00035B5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Rank
		{
			get
			{
				return this.rank_;
			}
			set
			{
				this.rank_ = value;
			}
		}

		// Token: 0x170005B2 RID: 1458
		// (get) Token: 0x06001389 RID: 5001 RVA: 0x00037967 File Offset: 0x00035B67
		// (set) Token: 0x0600138A RID: 5002 RVA: 0x0003796F File Offset: 0x00035B6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Tid
		{
			get
			{
				return this.tid_;
			}
			set
			{
				this.tid_ = value;
			}
		}

		// Token: 0x170005B3 RID: 1459
		// (get) Token: 0x0600138B RID: 5003 RVA: 0x00037978 File Offset: 0x00035B78
		// (set) Token: 0x0600138C RID: 5004 RVA: 0x00037980 File Offset: 0x00035B80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Promotion
		{
			get
			{
				return this.promotion_;
			}
			set
			{
				this.promotion_ = value;
			}
		}

		// Token: 0x0600138D RID: 5005 RVA: 0x00037989 File Offset: 0x00035B89
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeBossEquipmentInfo);
		}

		// Token: 0x0600138E RID: 5006 RVA: 0x00037998 File Offset: 0x00035B98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeBossEquipmentInfo other)
		{
			return other != null && (other == this || (this.UniqueId == other.UniqueId && this.Level == other.Level && this.Rank == other.Rank && this.Tid == other.Tid && this.Promotion == other.Promotion && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600138F RID: 5007 RVA: 0x00037A14 File Offset: 0x00035C14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.UniqueId != 0U)
			{
				num ^= this.UniqueId.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.Rank != 0U)
			{
				num ^= this.Rank.GetHashCode();
			}
			if (this.Tid != 0U)
			{
				num ^= this.Tid.GetHashCode();
			}
			if (this.Promotion != 0U)
			{
				num ^= this.Promotion.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001390 RID: 5008 RVA: 0x00037AB7 File Offset: 0x00035CB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001391 RID: 5009 RVA: 0x00037ABF File Offset: 0x00035CBF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001392 RID: 5010 RVA: 0x00037AC8 File Offset: 0x00035CC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Promotion != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Promotion);
			}
			if (this.Rank != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Rank);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Level);
			}
			if (this.UniqueId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.UniqueId);
			}
			if (this.Tid != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Tid);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001393 RID: 5011 RVA: 0x00037B78 File Offset: 0x00035D78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.UniqueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.UniqueId);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.Rank != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Rank);
			}
			if (this.Tid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Tid);
			}
			if (this.Promotion != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Promotion);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001394 RID: 5012 RVA: 0x00037C18 File Offset: 0x00035E18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeBossEquipmentInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.UniqueId != 0U)
			{
				this.UniqueId = other.UniqueId;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.Rank != 0U)
			{
				this.Rank = other.Rank;
			}
			if (other.Tid != 0U)
			{
				this.Tid = other.Tid;
			}
			if (other.Promotion != 0U)
			{
				this.Promotion = other.Promotion;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001395 RID: 5013 RVA: 0x00037CA4 File Offset: 0x00035EA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001396 RID: 5014 RVA: 0x00037CB0 File Offset: 0x00035EB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 40U)
				{
					if (num == 32U)
					{
						this.Promotion = input.ReadUInt32();
						continue;
					}
					if (num == 40U)
					{
						this.Rank = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 64U)
					{
						this.Level = input.ReadUInt32();
						continue;
					}
					if (num == 88U)
					{
						this.UniqueId = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.Tid = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000802 RID: 2050
		private static readonly MessageParser<ChallengeBossEquipmentInfo> _parser = new MessageParser<ChallengeBossEquipmentInfo>(() => new ChallengeBossEquipmentInfo());

		// Token: 0x04000803 RID: 2051
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000804 RID: 2052
		public const int UniqueIdFieldNumber = 11;

		// Token: 0x04000805 RID: 2053
		private uint uniqueId_;

		// Token: 0x04000806 RID: 2054
		public const int LevelFieldNumber = 8;

		// Token: 0x04000807 RID: 2055
		private uint level_;

		// Token: 0x04000808 RID: 2056
		public const int RankFieldNumber = 5;

		// Token: 0x04000809 RID: 2057
		private uint rank_;

		// Token: 0x0400080A RID: 2058
		public const int TidFieldNumber = 15;

		// Token: 0x0400080B RID: 2059
		private uint tid_;

		// Token: 0x0400080C RID: 2060
		public const int PromotionFieldNumber = 4;

		// Token: 0x0400080D RID: 2061
		private uint promotion_;
	}
}
